#include<iostream>
using namespace std;
int n;
int main()
{
	cin>>n;
	bitset<32>f(n);
	cout<<f.count()<<endl;
	return 0;
}

